Repository navigation
libs/crypto: crypto sets arm64's DIT around every cryptographic operation, with its guidelines and collect.py's test - #46
Merged
Merged
Conversation
added 6 commits
November 20, 2026 21:59
… its lane measures what a program gets
… release and renders the guard's cost
…tes, refuses missing data with a message, and marks provisional figures
…en only the other is measured, and refuses malformed data and program lines with a message
…g, never by returning null, and OpenSSL's fail_init and fail_second run with exceptions only
…tion, and a memory resource fails by throwing (gitlink 3f27988)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
crypto's change
data-independent-timing(webcpporg/crypto#11, webcpporg/proposals#22 and #23) in the superproject.libs/cryptomoves to 3f27988: the library sets arm64's DIT around every public cryptographic operation on every backend and restores the thread's state; a memory resource fails by throwing, never by returning null; the OpenSSL backend's resets wipe their context pointers.fail_initandfail_secondrun with exceptions only.tools/test/crypto_collect_test.py: bench/collect.py refuses a timing program not built at release, records each part's spread and UTC dates, keeps a provisional mark per part, and refuses missing or malformed data with a message.The guard's cost and the throughput tables were measured under load and are marked provisional; the coordinator measures them again in a final quiet pass after the streams of 2026-11-20 merge.
Verified locally (CI deferred by the owner): crypto's tests and examples on native clang and gcc-15, wasip2, wasip3 and Emscripten, debug and release, from scratch; crypto's tests on arm64 Linux with DIT; the Linux lint (clean) and the full macOS lint (clean); MSVC 14.3 and 14.5 under Wine (no failure beyond the known Wine ones); all 62 tools tests.